import time
from enum import Enum

BASE_URL = "https://yuyue.tamgw.beijing.gov.cn"
TICKETS_URL = f"{BASE_URL}/api-team/api/res_agency/check/guide?__={int(time.time()*1000)}"
USER_SUB_URL=f"{BASE_URL}/api-team/api/res_agency/group?_={int(time.time()*1000)}"
PRODUCT_PC_URL = f"{BASE_URL}/api-cache/anno/api/appointment-time/list/pc?productId=11324&_={int(time.time()*1000)}"
RSERVATION_URL = f"{BASE_URL}/api-team/api/res_agency/order/validate"
DETAILS_URL = f"{BASE_URL}/api-team/api/res_agency/detail"
CANCEL_URL = f"{BASE_URL}/api-team/api/res_agency/cancel/tag_number"
class TicketsCardType(str, Enum):
    ID_CARD = "id_card" #中国居民身份证
    JQTX_CARD = "jgtx_card" #港澳居民来往内地通行证
    HZ_CARD = "hz_card" #护照
    XF_CARD = "xf_card" #外国人永久居留证
    TWI_CARD = "tw_card" #台湾居民来往大陆通行证
    GAS_CARD = "ga_card" #港澳台居民居住证
class TicketsStstaus(str, Enum):
    RESERVATION_SUCCESS = "1" #预约成功
    ERROR = "-1" #预约中
    CANCELED = "-4" #取消预约
    STOP = "-3" #停止预约
    LAST_ERROR = "-2" #预约失败
    PADDING = "0" #初始状态
    TIME_OUT="-5" #已过期
class ProxyType(str,Enum):
    CUSTOM = "custom"
    PROXY = "proxy"
